package com.zyk.scaffold.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zyk.scaffold.user.entity.TenantRoleFunction;

import java.util.List;

/**
 * <p>
 * 用户-角色功能表 服务类
 * </p>
 *
 * @author zhouyk
 * @since 2021-12-06
 */
public interface TenantRoleFunctionService extends IService<TenantRoleFunction> {

    Boolean removeRoleFunctionByRoleId(Long roleId, Long optionUserId);

    List<TenantRoleFunction> getRoleFunctionsByRoleIds(List<Long> roleIds);

    Boolean deleteByTenantCodeFunctionIds(String tenantCode, List<Long> deletedFunctionIds);
}
